                <?php slot('title') ?>
                    <?php echo sprintf('Zestawienie') ?>
                <?php end_slot(); ?>
                <?php 
                    slot('bodyId');
                        echo 'action';
                    end_slot(); 
                    slot('osiagnieciaActive');end_slot();
                ?>
                <?php use_helper('Date', 'Text') ?>
                <?php 
                    if ($sf_user->getGuardUser()->hasPermission(sfConfig::get('app_terapeuta_permission_name'))):
                        include_component('zestawienie', 'menuTerapeuta');
                    ?>
                        <div class="grid_10">
                            <div class="dashboard">   
                                <h3>Twoi podopieczni</h3></li>
                                <div class="clear"></div>                                
                                <table class="dash">
                                    <tbody>
                                        <tr>
                                            <th>&nbsp;</th>
                                            <th>Podopieczny</th>
                                            <th>W grupie</th>
                                            <th>Postępy</th>
                                            <th>&nbsp;</th>
                                        </tr>   
                                        <?php 
                                            foreach ($terapeuta_pager as $i => $contact): 
                                                $_user = $contact->getTo();
                                                 if($contact->type->id == 3):                                             
                                            ?>
                                                <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
                                                    <td>
                                                         <a href="<?php echo url_for('wyniki/wynikipacjentlista?personid=' . $_user->id ) ?>">
                                                             <?php if (file_exists('./uploads/sf_social_pics/'.$_user->Profile->picture) && $_user->Profile->picture !=null) { ?>
                                                                <img alt="" title="" class="profileImageMini" src="/uploads/sf_social_pics/<?php echo $_user->Profile->picture ?>" /> 
                                                             <?php } else { ?>
                                                                <img alt="" title="" class="profileImageMini" src="/uploads/sf_social_pics/person-blank.gif" /> 
                                                             <?php } ?>
                                                         </a>
                                                    </td>
                                                    <td>
                                                        <a href="<?php echo url_for('wyniki/wynikipacjentlista?personid=' . $_user->id ) ?>"><?php echo $_user->username ?></a>
                                                    </td>
                                                    <td>
                                                    </td>
                                                    <td>

                                                    </td>
                                                    <td>
                                                        <a href="<?php echo url_for('wyniki/wynikipacjentlista?personid=' . $_user->id ) ?>">więcej</a>
                                                    </td>
                                                </tr>
                                            <?php                                             
                                                 endif;
                                            endforeach; ?>  
                                    </tbody>                        
                                </table>                                
                                <div class="clear"></div>
                            </div>
                        </div>
                    <?php
                    else:   
                        header("Location: ".url_for('@homepage')."");
                    endif; ?>
		<div class="clear"></div>
 